package org.i_plus.model.dao;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.Query;

public interface GenericDAO  <T>{

	public void save(T entity);
	public void update(T entity);
	public void deleteByString(Class clazz,String pk);
	public void deleteByInt(Class clazz,int pk);
	public List<T> findMany(Query query);	 
    public T findOne(Query query);
    public List<T> findAll(Class clazz);
    public T findByPKString(Class clazz,String pk);
    public T findByPKInt(Class clazz,int pk);
}
